package com.itheima.homework;

public class Test9 {
    public static void main(String[] args) {

      int too=too(20);
        System.out.println("二十个月后兔子的对数为: "+too);

    }
    public static int too(int x){
        if(x==1||x==2){
            return 1;
        }else{
            return too(x-2)+too(x-1);
        }
    }
}


